package com.itheima.d4_innerclass_anonymous;

public class test {
    public static void main(String[] args) {
        /**
         * 抽象类的匿名内部类
         */
        Animal a = new Animal() {
            @Override
            void run() {
                System.out.println("mouse");
            }
        };
        a.run();
    }
}
abstract class Animal{
    abstract void run();
}
